package jp.co.dailyReport;

import java.util.Calendar;
import org.apache.log4j.Logger;

public class SystemCalendar {

	private static Logger log = Logger.getLogger(SystemCalendar.class);

	public static final String SYSTEM_MONTH[] = {
		"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", 
		"11", "12"
	};

	public static final String SYSTEM_DATE[] = {
		"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", 
		"11", "12", "13", "14", "15", "16", "17", "18", "19", "20", 
		"21", "22", "23", "24", "25", "26", "27", "28", "29", "30", 
		"31"
	};

	public static final String SYSTEM_TIME[] = {
		"0.0", "0.25", "0.5", "0.75", "1.0", "1.25", "1.5", "1.75", "2.0", "2.25", "2.5", "2.75", "3.0", "3.25", "3.5", "3.75", 
		"4.0", "4.25", "4.5", "4.75", "5.0", "5.25", "5.5", "5.75", "6.0", "6.25", "6.5", "6.75", "7.0", "7.25", "7.5", "7.75", 
		"8.0", "8.25", "8.5", "8.75", "9.0", "9.25", "9.5", "9.75", "10.0", "10.25", "10.5", "10.75", "11.0", "11.25", "11.5", "11.75", 
		"12.0", "12.25", "12.5", "12.75", "13.0", "13.25", "13.5", "13.75", "14.0", "14.25", "14.5", "14.75", "15.0", "15.25", "15.5", "15.75", 
		"16.0", "16.25", "16.5", "16.75", "17.0", "17.25", "17.5", "17.75", "18.0", "18.25", "18.5", "18.75", "19.0", "19.25", "19.5", "19.75", 
		"20.0", "20.25", "20.5", "20.75", "21.0", "21.25", "21.5", "21.75", "22.0", "22.25", "22.5", "22.75", "23.0", "23.25", "23.5", "23.75", 
		"24.0", "24.25", "24.5", "24.75"
	};

	public static final String SYSTEM_PERCENT[] = {
		"0", "10", "20", "30", "40", "50", "60", "70", "80", "90", 
		"100"
	};

	public static final String SYSTEM_HOUR[] = {
		"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", 
		"11", "12", "13", "14", "15", "16", "17", "18", "19", "20", 
		"21", "22", "23", "0"
	};

	public static final String[] SYSTEM_LABEL_MINUTE = {
		"00", "05", "10", "15", "20", "25", "30", "35", "40", "45", 
		"50", "55"
	};

	public static final String[] SYSTEM_PROPERTY_MINUTE = {
		"0", "5", "10", "15", "20", "25", "30", "35", "40", "45", 
		"50", "55"
	};


	public static final String SYSTEM_WEEK[] = {
		"1", "2", "3", "4", "5"
	};

	public String[] getSystemYear() {

		Calendar cal = Calendar.getInstance();
		int nowYear = cal.get(Calendar.YEAR);
		String SYSTEM_YEAR[] = {
			 String.valueOf(nowYear - 5),
			 String.valueOf(nowYear - 4),
			 String.valueOf(nowYear - 3),
			 String.valueOf(nowYear - 2),
			 String.valueOf(nowYear - 1),
			 String.valueOf(nowYear),
			 String.valueOf(nowYear + 1),
			 String.valueOf(nowYear + 2),
			 String.valueOf(nowYear + 3),
			 String.valueOf(nowYear + 4),
			 String.valueOf(nowYear + 5)
		};

		return SYSTEM_YEAR;
	}
	
	public String[] getSystemMonth() {
		return SYSTEM_MONTH;
	}
	
	public String[] getSystemDate() {
		return SYSTEM_DATE;
	}
	
	public String[] getSystemTime() {
		return SYSTEM_TIME;
	}
	
	public String[] getSystemPercent() {
		return SYSTEM_PERCENT;
	}
	
	public String[] getSystemHour() {
		return SYSTEM_HOUR;
	}

	public String[] getSystemLabelMinute() {
		return SYSTEM_LABEL_MINUTE;
	}
	
	public String[] getSystemPropertyMinute() {
		return SYSTEM_PROPERTY_MINUTE;
	}



	public String[] getSystemWeek() {
		return SYSTEM_WEEK;
	}
}
